import router from './router'
import NProgress from 'nprogress' // progress bar


router.beforeEach((to, from, next) => {
    NProgress.start() // start progress bar
    document.title = to.meta.title || ''
    next()
})

router.afterEach(() => {
    NProgress.done() // finish progress bar
})